import request from '/@/utils/request';


export const getGoods = (query: any)=>{
    return request({
        url:'/goods/?page='+query.pagenum+'&limit='+query.pagesize+"&searchText="+query.query,
        method:"get"
    })
}

export const addGoods = (query:any)=>{
    return request({
        url:'goods/',
        method: "post",
        data: query
    })
}

export const upGoods = (query:any)=>{
    return request({
        url:'goods/',
        method:"put",
        data: query
    })
}

export const deGoods = (query:any)=>{
    return request({
        url:'goods/',
        method:"delete",
        data:query
    })
}